Platform Explorer / Nuxeo Platform LTS 2017 9.10

Operation Document.CreateVersion (Snapshot Version)

Description

Create a new version for the input document. Any modification made on the document by the chain will be automatically saved. Increment version if this was specified through the 'snapshot' parameter. Returns the live document (not the version).
Operation id Document.CreateVersion
Category Document
Label Snapshot Version
Requires
Since

Parameters

Name Description Type Required Default value
increment string no None, Minor, Major 
saveDocument boolean no  

Signature

Inputs document, documents
Outputs document, documents

Implementation Information

Implementation Class Class: org.nuxeo.ecm.automation.core.operations.document.CreateVersion
Contributing Component org.nuxeo.ecm.core.automation.coreContrib

JSON Definition

{
  "id" : "Document.CreateVersion",
  "label" : "Snapshot Version",
  "category" : "Document",
  "requires" : null,
  "description" : "Create a new version for the input document. Any modification made on the document by the chain will be automatically saved. Increment version if this was specified through the 'snapshot' parameter. Returns the live document (not the version).",
  "url" : "Document.CreateVersion",
  "signature" : [ "document", "document", "documents", "documents" ],
  "params" : [ {
    "name" : "increment",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : "Option",
    "order" : 0,
    "values" : [ "None", "Minor", "Major" ]
  }, {
    "name" : "saveDocument",
    "description" : null,
    "type" : "boolean",
    "required" : false,
    "widget" : "Check",
    "order" : 0,
    "values" : [ ]
  } ]
}